const path = require('path');

// module.exports = {
//     entry:'./src/main.js',
//     output:{
//         filename:'bundle.js',
//         path: path.resolve(__dirname,'dist')
//     }

// }

const htmlWebpackPlugin = require('html-webpack-plugin');
<<<<<<< HEAD
<<<<<<< HEAD
const vueloaderplugin = require('vue-loader/lib/plugin');
=======
>>>>>>> 9281d1aa7753ffa1f2e80a6e439dc86b944d4e45
=======
const vueloaderplugin = require('vue-loader/lib/plugin');
>>>>>>> 823cb4dbd31225b7b638ca06b7fc9879ac978216

module.exports={
    entry:path.join(__dirname,'./src/main.js'),
    output:{
        path:path.join(__dirname,'./dist'),
        filename:'bundle.js'
    },
    plugins:[
        new htmlWebpackPlugin({
            template: path.join(__dirname,'./src/index.html'),
            filename:'index.html'
<<<<<<< HEAD
<<<<<<< HEAD
        }),
        new vueloaderplugin()
=======

        })
>>>>>>> 9281d1aa7753ffa1f2e80a6e439dc86b944d4e45
=======
        }),
        new vueloaderplugin()
>>>>>>> 823cb4dbd31225b7b638ca06b7fc9879ac978216
    ],
    module:{
        rules:[
            {test:/\.css$/,use:['style-loader','css-loader']},
<<<<<<< HEAD
<<<<<<< HEAD
            {test:/\.less$/,use:['style-loader','css-loader','less-loader']},
            {test:/\.vue$/,use:'vue-loader'}
=======
            {test:/\.less$/,use:['style-loader','css-loader','less-loader']}
>>>>>>> 9281d1aa7753ffa1f2e80a6e439dc86b944d4e45
=======
            {test:/\.less$/,use:['style-loader','css-loader','less-loader']},
            {test:/\.vue$/,use:'vue-loader'}
>>>>>>> 823cb4dbd31225b7b638ca06b7fc9879ac978216
        ]
    }


}